package itheima.com.zuoye.d04;

public class Test {
    //    创建饲养员对象,饲养员调用三次饲养方法:饲养狗,饲养羊,饲养青蛙
    public static void main(String[] args) {
        Breeder breeder = new Breeder();
        breeder.breed(new Dog());
        breeder.breed(new Sheep());
        breeder.breed(new Frog());

        breeder.swimgame(new Dog());

        breeder.swimgame(new Frog());

    }
}

